/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

package com.example.javaagent.instrumentation.httpclinet;

import static java.util.Arrays.asList;

import com.google.auto.service.AutoService;
import io.opentelemetry.javaagent.extension.instrumentation.InstrumentationModule;
import io.opentelemetry.javaagent.extension.instrumentation.TypeInstrumentation;
import java.util.List;

@AutoService(InstrumentationModule.class)
public class DemoHttpClientInstrumentationModule extends InstrumentationModule {
  public DemoHttpClientInstrumentationModule() {
    super("servlet-demo");
  }

  @Override
  public boolean isHelperClass(String className) {
    return className.startsWith("com.example.javaagent.instrumentation.httpclinet");
  }
  
  @Override
  public int order() {
    return 1;
  }


  @Override
  public List<TypeInstrumentation> typeInstrumentations() {
    return asList(
//        new DHttpClientInstrumentation(),
        new DHttpHeadersInstrumentation());
  }
}
